package com.ymx.darling.dialect;

public class DB2Dialect extends SqlServerDialect{
    private String splitSql(String sql) {
        return "select * from (select ROW_NUMBER() OVER() AS ROW_NUM, TMP.* from ( "
                + sql +
                " ) AS TMP) WHERE ROW_NUM > ? and ROW_NUM <= ?";
    }

    @Override
    public String getDataBaseType() {
        return "db2";
    }

    @Override
    public String charLength(String column) {
        return "LENGTH("+column+", CODEUNITS16)";
    }
}
